import App from './App'
import uView from '@/uni_modules/uview-ui'
import store from '@/store'
import config from '@/config'
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
Vue.use(uView)

Vue.prototype.VUE_APP = config
console.log(process.env.NODE_ENV)
App.mpType = 'app'
const app = new Vue({
    ...App,
	store
})

// 引入请求封装，将app参数传递到配置中
require('./config/request.js')(app)
require('./api/index.js')
require('@/utils/prototype.js')
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif